package org.example.shop;
import java.util.HashMap;
import java.util.Scanner;
public class MainMenu {

        public void menu(ManagerMenu me, Manager m, Customer c2, CustomerMenu cm, HashMap<String, Customer> customerMap,
                         HashMap<String, Customer> IDMap) {
            System.out.println("请选择：1.管理员登录   2.客户登录");
            Scanner sc = new Scanner(System.in);
            int choose = sc.nextInt();
            if (choose == 1) {
                me.managerMenu(me, m, customerMap, IDMap);//管理员登录
            } else if (choose == 2) {
                cm.customerMenu(c2, me);
            } else {
                System.out.println("输入错误");
            }
        }
}


